@extends('wap.layouts.master')
@section('title','球队人数')

@section('content')

<div class="aw-main aw-user aw-user-team">
	<ul class="aw-assest-user-list">
		<li class="aw-assest-user-list-li" v-for="(list,key) in list_page">
			<div class="aw-assest-li-img"><img :src="list.img ? list.img : '/wap/img/login_img.png'" onerror="javascript:this.src='/wap/img/login_img.png';"></div>
			<div class="aw-assest-li-conter">
				<p>@{{list.nickname}}</p>
				<p class="aw-li-conter-desc">@{{list.phone}}</p>
			</div>
			<span v-if="list.is_admin==1" class="aw-assest-btn aw-assest-li-btn aw-btn-no1">队长</span>
			<button type="submit" v-if="list.is_admin==0" v-on:click="Submit_Remove(list.uid,key)" class="aw-assest-btn aw-assest-li-btn aw-btn-w60">踢出</button>
		</li>
	</ul>
	<vue-loding :info_page="info_page"></vue-loding>
</div>

@section('pagejs')
@parent

<script type="text/javascript" src="/wap/js/vue-loding.js"></script>
<script type="text/javascript">
var MJS_URLArry=URLArry;
var Vue_Data={
	list_page:{},
	info_page:{page:1,count:0,tips:'球员'},
}
var AD_list_page={
	api:'/api/team/team-member',
	form_data:{team_id:URLArry.team_id},
	tips:false,
}
//获取分页列表-全局通用
Get_Refresh_Page_List()
vm=new Vue({
	el:'#Vue-body',
	data:Vue_Data,
	components:{
		'vue-loding':V_Assest_loding,
	},methods:{
		Submit_Remove:function(id,key){
			var AD_remove={
				api:'/api/team/remove-member',
				form_data:{uid:id,team_id:URLArry.team_id},
				tips:'踢出成员成功',
			}
			postData(AD_remove,function(){
				vm.list_page.splice(key,1)
			})
		}
	}
})
console.log(vm)
</script>
@endsection

@endsection

